package com.cdyx.outsideprescription.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cdyx.outsideprescription.entity.TbDicDrug;
import com.cdyx.outsideprescription.mapper.TbDicDrugMapper;
import com.cdyx.outsideprescription.service.ITbDicDrugService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("dicDrugServiceImpl")
public class ITbDicDrugServiceImpl extends ServiceImpl<TbDicDrugMapper, TbDicDrug> implements ITbDicDrugService {
@Autowired
private TbDicDrugMapper dicDrugMapper;
    @Override
    public int insert(TbDicDrug dicDrug) {
        return dicDrugMapper.insert(dicDrug);
    }

    @Override
    public IPage<TbDicDrug> selectDrug(Page<TbDicDrug> page, QueryWrapper<TbDicDrug> queryWrapper) {
        return dicDrugMapper.selectDrug(page,queryWrapper);
    }
}
